package com.linciping.useges.plugin.writer;

import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiDirectory;
import com.linciping.useges.plugin.bean.UsegesNode;

import java.util.List;

public class UsegesTextWriter extends BaseTextWriter {

    private static final String FILE_NAME = "Useges.txt";
    private final List<UsegesNode> usegesNodeList;

    public UsegesTextWriter(Project project, PsiDirectory psiDirectory, List<UsegesNode> usegesNodeList) {
        super(project, psiDirectory);
        this.usegesNodeList = usegesNodeList;
    }

    @Override
    String getContent() {
        return usegesNodeList.toString();
    }

    @Override
    String getFileName() {
        return FILE_NAME;
    }
}
